package com.why.service.impl;

import com.why.dao.OrderDetailMapper;
import com.why.pojo.OrderDetail;
import com.why.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    OrderDetailMapper orderDetailMapper;

    @Override
    public List<OrderDetail> selectByOrderId(Integer orderId) {
        return orderDetailMapper.selectByOrderId(orderId);
    }
}
